package com.motherchild.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author zhuchenxu
 * @create 2025-03-12-17:33
 */
@Data
public class UserOrderDTO {

    private Long id;
    private Long addressId;
    private String orderNo; // 订单号
    private Long userId; // 用户ID
    private String shippingName; // 收件人姓名
    private String shippingPhone; // 收件人电话
    private String shippingAddress; // 收货地址
    private Double paymentAmount; // 支付金额
    private Integer status; // 订单状态
    private String remark; // 备注
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentTime; // 支付时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date shippingTime; // 发货时间
    private String trackingNo; // 物流单号
    private String trackingCompany; // 物流公司
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt; // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt; // 更新时间
    private List<UserOrderItemDTO> items; // 订单项列表
    private Double totalAmount;

}
